<template>
<el-input placeholder="查询信息的学生学号" v-model="Into.searchName" clearable> </el-input>
 <el-button type="primary" @click="select">查找</el-button>
    
       <el-table :data="list_student" border stripe>
       <el-table-column type="index" label="#"></el-table-column>
        <el-table-column label="学号" prop="Sno">   </el-table-column>
        <el-table-column label="姓名" prop="Sname"></el-table-column>
        <el-table-column label="年龄" prop="Sage"></el-table-column>
        <el-table-column label="性别" prop="Ssex"></el-table-column>
        <el-table-column label="专业" prop="Sdept"></el-table-column>
        <el-table-column label="地区" prop="Sregion"></el-table-column>
        <el-table-column label="学制" prop="Sedu_sys"></el-table-column>
        <el-table-column label="政治面貌" prop="Spolitics"></el-table-column>
        <el-table-column label="民族" prop="Snation"></el-table-column>
      </el-table>
      <el-table :data="list_sc" border stripe>
       <el-table-column type="index" label="#"></el-table-column>
        <el-table-column label="学号" prop="Sno">   </el-table-column>
        <el-table-column label="课号" prop="Cno">   </el-table-column>
        <el-table-column label="成绩" prop="Grade">   </el-table-column>
      </el-table>
      <el-table :data="list_p" border stripe>
       <el-table-column type="index" label="#"></el-table-column>
        <el-table-column label="学号" prop="Sno">   </el-table-column>
        <el-table-column label="惩罚内容" prop="P_name">   </el-table-column>
        <el-table-column label="日期" prop="Date">   </el-table-column>
      </el-table>
      <el-table :data="list_h" border stripe>
       <el-table-column type="index" label="#"></el-table-column>
        <el-table-column label="学号" prop="Sno">   </el-table-column>
        <el-table-column label="奖励内容" prop="H_name">   </el-table-column>
        <el-table-column label="日期" prop="Date">   </el-table-column>
      </el-table>

      
</template>


<script>

export default {
    data() {
    return {
        list_student:[],
        list_sc:[],
        list_p:[],
        list_h:[],
      Into:{
        searchName:"",
        limit :2,
        page:1
      },

    };
  },
 
  methods: {
    async select() {
      const { data: res1} = await this.$http.get("/system/apis/student",{ params: this.Into});
      this.list_student = res1.data.value
      console.log(this.list_student)
      const { data: res} = await this.$http.get("/system/apis/sc",{ params: this.Into});
      this.list_sc = res.data.value
      console.log(this.list_sc)
      const { data: res2} = await this.$http.get("/system/apis/punishment",{ params: this.Into});
      this.list_p = res2.data.value
      console.log(this.list_sc)
      const { data: res3} = await this.$http.get("/system/apis/honor",{ params: this.Into});
      this.list_h = res3.data.value
      console.log(this.list_sc)
    },
  }
};
</script>
